import request from '../utils/request'

export const regApi = data => request.post('/index/reg', data)
export const loginApi = data => request.post('/index/login', data)
export const getUserInfoApi = () => request.get('/user/getUserInfo')
export const getFingerApi = (data) => request.get('/user/userDataHandle', { params: data })
export const getUserLikeApi = (data) => request.get('/user/userDataList', { params: data })
// 修改用户资料
export const userUpdateApi = (data) => request.post("/user/update", data)
// 文件上传
export const fileApi = (data, FormData) => request.post(`/common/upload?type=${data}`, FormData);

